package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UgcUploadImagesTags entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ugc_upload_images_tags", catalog = "mr_plants")
public class UgcUploadImagesTags implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private Integer fromImageId;
	private String x;
	private String y;
	private Integer rediret;
	private String text;
	private Integer clickNumber;
	private Timestamp createTime;
	private String ip;

	// Constructors

	/** default constructor */
	public UgcUploadImagesTags() {
	}

	/** full constructor */
	public UgcUploadImagesTags(Integer userId, Integer fromImageId, String x,
			String y, Integer rediret, String text, Integer clickNumber,
			Timestamp createTime, String ip) {
		this.userId = userId;
		this.fromImageId = fromImageId;
		this.x = x;
		this.y = y;
		this.rediret = rediret;
		this.text = text;
		this.clickNumber = clickNumber;
		this.createTime = createTime;
		this.ip = ip;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "from_image_id")
	public Integer getFromImageId() {
		return this.fromImageId;
	}

	public void setFromImageId(Integer fromImageId) {
		this.fromImageId = fromImageId;
	}

	@Column(name = "x", length = 32)
	public String getX() {
		return this.x;
	}

	public void setX(String x) {
		this.x = x;
	}

	@Column(name = "y", length = 32)
	public String getY() {
		return this.y;
	}

	public void setY(String y) {
		this.y = y;
	}

	@Column(name = "rediret")
	public Integer getRediret() {
		return this.rediret;
	}

	public void setRediret(Integer rediret) {
		this.rediret = rediret;
	}

	@Column(name = "text", length = 64)
	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Column(name = "click_number")
	public Integer getClickNumber() {
		return this.clickNumber;
	}

	public void setClickNumber(Integer clickNumber) {
		this.clickNumber = clickNumber;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "ip", length = 15)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}